<!doctype html>
<html lang="de">
	<head>
		<meta charset="utf-8">
		<title>FUD Dokumenttyp Editor</title>
		<link rel="stylesheet" href="css/jquery-ui.css">
		<link rel="stylesheet" href="css/jquery.contextMenu.css">
		<link rel="stylesheet" href="css/bootstrap.min.css" >
		<link rel="stylesheet" href="css/fud.doctype.editor.css">
		<script data-main="scripts/main" src="scripts/vendor/require.js"></script>
		<style>
			html, body {
				height: 100%;
				padding: 0px;
				margin: 0px;
				background-color: #2F4154; /*#2f4154*/
			}
			#editor1 {
				padding: 5px;
				margin: auto;
				height: 98%;
				width: 95%;
			}
		</style>
		<script type="text/javascript"></script>
	</head>

	<body>
		<div id="editor1"></div>
		<div id="editor2"></div>
	<body>
		<div id="_test_" style="display: none">
			<div class="fud-editor-container">
				<div class="fud-toolbar collapse navbar-collapse">
					<ul class="nav navbar-nav">
						<li class="dropdown">
							<a href="#" class="fud-menu-a dropdown-toggle" data-toggle="dropdown">Erstellen <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="#" name="fud_menuitem_new">Neuen Dokumenttyp</a>
								</li>
								<li>
									<a href="#" name="fud_menuitem_import">Import aus SQL</a>
								</li>

								<li>
									<a href="#" name="fud_menuitem_demo">Demo: Typ 53</a>
								</li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">Konfigurieren <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="#" name="fud_menuitem_setup_doctyp">Dokumenttyp</a>
								</li>
								<li>
									<a href="#" name="fud_menuitem_setup_openDlg">Öffnen-Dialog</a>
								</li>
								<li>
									<a href="#" name="fud_menuitem_setup_printpos">Felder-Druckposition</a>
								</li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">Export <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="#" name="fud_menuitem_save_as">SQL speichern unter</a>
								</li>
								<li>
									<a href="#" name="fud_menuitem_show_sql" >SQL text ansehen</a>
								</li>
							</ul>
						</li>
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">Hilfe <span class="caret"></span></a>
							<ul class="dropdown-menu" role="menu">
								<li>
									<a href="#" name="fud_menuitem_about">About</a>
								</li>
							</ul>
						</li>
					</ul>
					<div class="fud-toolbar-redoundo">
						<input type="button" value=" < " name="undo" title="R&uuml;ckg&auml;gig machen" disabled="disabled" class="fud-button-disabled ui-corner-all" />
						<input type="button" value=" > " name="redo" title="Vorg&auml;gig machen" disabled="disabled" class="fud-button-disabled ui-corner-all" />
					</div>
				</div>
				<div class="fud-tabs">
					<ul>
						<li>
							<input name="create_tab_button" disabled="disabled" title="Neuer Tab erstellen" type="button" value="+"/>
						</li>
					</ul>
				</div>
				<div class="fud-dialog-create-doctype" title="Dokumenttyp erstellen">
					* Hier kann man einen neuen Dokumenttyp erstellen.
					<div class="fud-create-doctype-container">
						<table>
							<tr>
								<td class="fud-align-right">Dokumenttyp Kommentar *:</td>&nbsp;<td>
								<input name="vw_metadata_docTypeComment" data-reg="w"   type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">docTypID *:</td><td>
								<input name="vw_docTyp_ID" data-reg="d"  type="text" />
								(Nur Ziffer) </td>
							</tr>
							<tr>
								<td class="fud-align-right">docGroupID *:</td><td>
								<input name="vw_docTyp_docGroupID" data-reg="d"  type="text" />
								(Nur Ziffer) </td>
							</tr>
							<!--<tr>
							<td class="fud-align-right">parentID:*</td><td>
							<input name="vw_docTyp_parentID" data-reg="d"   type="text" />
							</td>
							</tr>-->
							<tr>
								<td class="fud-align-right">data:*</td><td>
								<input name="vw_docTyp_data" data-reg="w"   type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">sort:*</td><td>
								<input name="vw_docTyp_sort" data-reg="d"  type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">kurzel *:</td><td>
								<input name="vw_docTyp_kurzel" data-reg="w"  type="text" />
								</td>
							</tr>
						</table>
					</div>
				</div>

				<!--import sql-->
				<div class="fud-dialog-import-doctype" title="Dokumenttyp erstellen">
					<div>
						* Hier kann man einen vorhandenen Dokumenttyp aus SQL importieren und bearbeiten.
					</div>
					<br />
					<div>
						SQL Inhalt hier eingeben:
						<textarea rows="8" name="fud_import_sql" style="height:100%; width:100%"></textarea>
					</div>
				</div>
				<!-- Eigenschaften von Typ-->
				<div class="fud-dialg-setup-doc" title="Dokumenttyp Eigenschaften">
					<div>
						<table>
							<tr>
								<td class="fud-align-right">Dokumenttyp Kommentar:</td>&nbsp;<td>
								<input name="vw_metadata_docTypeComment" data-reg="w"   type="text" />
								</td>
							</tr>
							<!--<tr>
							<td class="fud-align-right" style="font-weight: bold">docTyp</td><td></td>
							</tr>-->
							<tr>
								<td class="fud-align-right">docTypID:</td>&nbsp;<td>
								<input name="vw_docTyp_ID" data-reg="d" type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">docGroupID *:</td><td>
								<input name="vw_docTyp_docGroupID" data-reg="d"  type="text" />
								</td>
							</tr>
							<!--<tr>							<td class="fud-align-right">parentID *:</td><td>
							<input name="vw_docTyp_parentID" data-reg="d"   type="text" />
							</td>
							</tr>-->
							<tr>
								<td class="fud-align-right">data *:</td><td>
								<input name="vw_docTyp_data" data-reg="w"   type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">sort *:</td><td>
								<input name="vw_docTyp_sort" data-reg="w"  type="text" />
								</td>
							</tr>
							<tr>
								<td class="fud-align-right">kurzel *:</td><td>
								<input name="vw_docTyp_kurzel" data-reg="w"  type="text" />
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="fud-dialg-setup-openDlg" title="Öffnen Dialog">
					<div class="dlg_tbl_container">
						<table class="dlg_tbl">
							<!--<tr class="dlg_tbl_title"></tr>
							<tr class="dlg_tbl_content"></tr>-->
						</table>
					</div>
				</div>
				<div class="fud-dialg-setup-printpos" title="Druckposition von Feldern">
					<div name="fud_setup_printpos" class="fud_setup_printpos">
						<ul class="fud-tab-panel" style="display: block; margin-right:20px"></ul>
					</div>
				</div>
				<div class="fud-dialog-dlg-edit" title="Spalte bearbeiten">
					<input type="hidden" name="vw_openDlg_spalte_title" />
					<input type="hidden" name="vw_openDlg_spalte_data"	/>
					<input title="add" type="image" name="dlg_add_item" src="css/images/page_white_add.png" />
					<input title="Ausgew&auml;lte entfernen" type="image" name="dlg_del_item" style="margin-left:5px" src="css/images/page_white_delete.png" />
					<div name="dlg_spalte_edit_container"></div>
				</div>			
				<div class="fud-dialog-export-show-sql"  title="SQL">
					<h3></h3>
					<div name="fud_export_container" class="fud_export_container">
						<div name="fud_export_sql"></div>
						<textarea rows="10" name="fud_export_sql" wrap="off" style="display:none; width:100%; height:100%; background-color: #444444; color:#dddddd;"></textarea>
					</div>
				</div>
				<div class="fud-dialog-tab-edit"  title="Tab Editieren">
					<table>
						<tr>
							<td class="fud-align-right">Als Wiederholungsfeld</td><td>
							<input type="checkbox" name="tab_eb" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">Typ:</td><td><select name="tab_name"></select></td>
						</tr>
						<tr>
							<td class="fud-align-right">Bezeichnung:</td><td>
							<input type="text" name="tab_bezeichung" />
							</td>
						</tr>

					</table>
				</div>
				<div class="fud-dialog-about" title="FuD Dokumenttyp Editor">
					<div>
						Version: 26.02.2015
					</div>
				</div>

				<!-- Felder bearbeiten -->
				<div class="fud-edit-field fud-dialog-default-font" title="Felder bearbeiten">
					<table>
						<tr>
							<td class="fud-align-right">ID:</td><td>
							<input type="text" disabled="disabled" name="vw_mask_ID" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">elementText:</td><td>
							<input type="text" name="vw_mask_elementText" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">fieldTyp:</td><td><select name="vw_mask_fieldTyp" class="fud-edit-field-select"></select></td>
						</tr>
						<tr>
							<td class="fud-align-right">indexTable:</td><td>
							<input type="text" name="vw_mask_indexTable" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">parentID:</td><td>
							<input type="text"  name="vw_mask_parentID" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">headdatasort:</td><td>
							<input type="text"  name="vw_mask_headdatasort" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">print_pos:</td><td>
							<input type="text" name="vw_mask_print_pos" disabled="disabled"  class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">print_pre:</td><td>
							<input type="text" name="vw_mask_print_pre" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right" >print_post:</td><td>
							<input type="text" name="vw_mask_print_post" class="fud-edit-field-input" />
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">publLemm_post</td><td>
							<input type="text" name="vw_mask_publLemm_pos" class="fud-edit-field-input"/>
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">publLem_pre</td><td>
							<input type="text" name="vw_mask_publLemm_pre" class="fud-edit-field-input"/>
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">publLemm_post</td><td>
							<input type="text" name="vw_mask_publLemm_post" class="fud-edit-field-input"/>
							</td>
						</tr>
						<tr>
							<td class="fud-align-right">*</td><td>
							<input type="checkbox" checked="" name="vw_mask_obligatory"/>
							Feld ist erforderlich? </td>
						</tr>
					</table>
				</div>
			</div>
		</div>

